<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../header.jsp"%>
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="content">


<div id="page-heading"><h1>Form Tambah Beasiswa Baru</h1></div>


<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized"><img src="../images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="../images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">

	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr valign="top">
	<td>
            <script>
                                        function validateForm()
                                        {                                            
                                                                                        
                                            var namaBeasiswa = true, tanggalMulai= true, kuotaBeasiswa= true, deskripsiBeasiswa= true;
                                            
                                            if(document.frm.namaBeasiswa.value=="")
                                            {                                                
                                                document.getElementById("namaBeasiswa_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Kolom Belum Terisi.</div>";
                                                namaBeasiswa = false;
                                            } else {
                                                document.getElementById("namaBeasiswa_error").innerHTML="";       
                                            }
                                            
                                            if(document.frm.tanggalMulai.value=="0")
                                            {                                                
                                                document.getElementById("tanggalMulai_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Kolom Belum Terisi.</div>";
                                                tanggalMulai= false;
                                            } else {
                                                document.getElementById("tanggalMulai_error").innerHTML="";
                                            }                                                   
                                            
                                            if(document.frm.kuotaBeasiswa.value=="0")
                                            {
                                                document.getElementById("kuotaBeasiswa_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Kolom Belum Terisi.</div>";
                                                kuotaBeasiswa= false;
                                            } else {
                                                document.getElementById("kuotaBeasiswa_error").innerHTML="";
                                            }    
                                            
                                            if(document.frm.deskripsiBeasiswa.value=="")
                                            {                                                
                                                document.getElementById("deskripsiBeasiswa_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Kolom Belum Terisi.</div>";
                                                deskripsiBeasiswa= false;
                                            } else {
                                                document.getElementById("deskripsiBeasiswa_error").innerHTML="";
                                            }
                                            
                                            if(namaBeasiswa && tanggalMulai && kuotaBeasiswa && deskripsiBeasiswa){
                                                return true;
                                            }else{
                                                return false;
                                            }
        
                                        }
                                    </script>

		<!-- start id-form -->
                <!-- end step-holder --><!-- start id-form -->
            <form action="TambahBeasiswa?status=submit" method="POST">
		<table id="id-form" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th valign="top">Nama Beasiswa:</th>
			<td><input type="text" class="inp-form-error" name="namaBeasiswa" id="namaBeasiswa"/></td>
			<td width="270" id="namaBeasiswa_error"></td>
		</tr>
		<tr>
			<th valign="top">Due Date:</th>
			<td><input type="text" class="inp-form-error" name="deadline"  id="tanggalMulai"/></td>
			<td width="270" id="tanggalMulai_error"></td>
		</tr>
                <tr>
			<th valign="top">Kuota:</th>
			<td><input type="text" class="inp-form-error" name="kuotaBeasiswa" id="kuotaBeasiswa" /></td>
			<td width="270" id="kuotaBeasiswa_error"></td>
		</tr>

	<tr>
		<th valign="top">Deskripsi:</th>
		<td><textarea rows="" cols="" class="form-textarea" name="deskripsiBeasiswa" id="deskripsiBeasiswa"></textarea></td>
		<td width="270" id="deskripsiBeasiswa_error"></td>
	</tr>
	<tr>  
		<th>&nbsp;</th>
		<td valign="top">
			<input type="submit" value="" class="form-submit" />
                        <input type="reset" value="" class="form-reset"  />
		</td>
		<td></td>
	</tr>
	</table>
                </form>
	<!-- end id-form  -->

	</td>
	<td>


</td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>

<div class="clear"></div>


</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
	<th class="sized bottomleft"></th>
	<td id="tbl-border-bottom">&nbsp;</td>
	<th class="sized bottomright"></th>
</tr>
</table>















<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->
<!--  end content-outer........................................................END -->
<%@include file="../footer.jsp"%>